package com.design.reactor.stretchIO._4_masterSlaveReactorMultiThread.state;

import com.design.reactor.stretchIO._4_masterSlaveReactorMultiThread.handler.DataHandler;

import java.io.IOException;
import java.nio.channels.SelectionKey;
import java.nio.channels.SocketChannel;
import java.util.concurrent.ThreadPoolExecutor;

public interface HandlerState {
    public void changeState(DataHandler h);

    void handle(DataHandler h, SelectionKey sk, SocketChannel sc,
                ThreadPoolExecutor pool) throws IOException;

}
